﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Xiaov.SmartWeb.Infrastructure.ExtMethod;
using StatisticsSystem.Calculate;

namespace Xiaov.SmartWeb.Application.PluginSrc.StatisticalSystem
{
    public partial class AjaxAutoCompute : System.Web.UI.Page
    {
        public string TableName { get; set; }
        public string Year { get; set; }
        public string Month { get; set; }
        public string DWBM { get; set; }
        public string ZBBM { get; set; }
        public string zd { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            TableName = Request.Form["tn"].ToRequestString();
            Year = Request.Form["year"].ToRequestString();
            Month = Request.Form["month"].ToRequestString();
            DWBM = Request.Form["dwbm"].ToRequestString();
            ZBBM = Request.Form["zbbm"].ToRequestString();
            zd = Request.Form["zd"].ToRequestString();
            Response.Write(StatisticsSystem.Calculate.CalculateCell.calculate(TableName, ZBBM, zd, DWBM, Year, Month));
            //
            //Response.Write(StatisticsSystem.Calculate.CalculateCell.calculate("CL0017", "CL00170002", "COL3", "HG", "2013", "12"));
            Response.End();
            //

            //Response.Write("{\"Zbbm\":\"CL00070008\",\"Zd\":\"COL4\",\"Value\":\"200\",\"Bbbm\":\"CL0001\",\"Dwbm\":\"HB01\",\"Nf\":2014,\"Yf\":1}");
        }       
       
    }
}